<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="index.css"/>
    <title>API管理</title>
</head>
<body>

<div id="header">
    <div class="head">
        <ul class="nav">
            <li>
                <a href="index_1.html" title="index">
                    <span class="title_head"></span><span class="title">首页</span></a>
            </li>
            <li>
                <a href="api_1.html" title="API"><span class="title_head"></span><span class="title">API</span></a>
            </li>
        </ul>
    </div>
</div>

<div id="logo" class="wtcenter"><h1>API管理</h1></div>

<div id="nav" class="wtcenter">
    <ul>
        <li><a href="index_1.html">首页</a></li>
        <li class="selected"><a href="api_1.html">API</a></li>
    </ul>
    <div class="clear"></div>
</div>
﻿
<div id="content" class="wtcenter">
    <div id="sidePanel" class="side_panel">
        <ul><li class=""><a href="api_1.html">通用的mysql增删改查</a></li>
<li class="selected"><a href="api_2.html">账户</a></li>
<li class=""><a href="api_3.html">消息</a></li>
<li class=""><a href="api_4.html">图表</a></li>
<li class=""><a href="api_5.html">文件上传</a></li>
<li class=""><a href="api_6.html">各项目扩展接口</a></li>
</ul>
    </div>
    <div id="mainPanel">
        <div id="nav_list">
            <ul><li><a href="api_2.html#2">2.2 登录</a></li><li><a href="api_2.html#3">2.3 修改密码</a></li><li><a href="api_2.html#4">2.4 获取权限</a></li><li><a href="api_2.html#5">2.5 自己的所有权限</a></li><li><a href="api_2.html#6">2.6 role_id的所有权限</a></li><li><a href="api_2.html#7">2.7  更新某个角色的权限信息</a></li><li><a href="api_2.html#8">2.8  删除权限信息</a></li></ul>
        </div>
        <div id="proto"><div class="p_content">
            <a name="2"></a>
            <h3>2.2 登录(<font color="green">"/account_sproto/account_login"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

    "account_name", <font color='#333'></font>
    "account_pwd"   <font color='#333'></font>
}
<font color="#000">回复格式</font>
{

    "code",         <font color='#333'></font>
    "new_account_nam<font color='#333'></font>
    "account_id"    <font color='#333'></font>
}
                </pre>
            </div>
        </div><div class="p_content">
            <a name="3"></a>
            <h3>2.3 修改密码(<font color="green">"/account_sproto/account_update_pwd"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

    "account_name", <font color='#333'></font>
    "account_pwd"   <font color='#333'></font>
}
<font color="#000">回复格式</font>
{

    "code"          <font color='#333'> 200:成功</font>
}
                </pre>
            </div>
        </div><div class="p_content">
            <a name="4"></a>
            <h3>2.4 获取权限(<font color="green">"/account_sproto/get_pms"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

    "top_pms_id"    <font color='#333'></font>
}
<font color="#000">回复格式</font>
{

    "code",         <font color='#333'></font>
    "top_pms":[{
        "name",         <font color='#333'></font>
        "kv_list"       <font color='#333'>name, url, tab</font>
    }],
    "pms":[{
        "name",         <font color='#333'></font>
        "kv_list"       <font color='#333'>name, url, tab</font>
    }]
}
                </pre>
            </div>
        </div><div class="p_content">
            <a name="5"></a>
            <h3>2.5 自己的所有权限(<font color="green">"/account_sproto/pms_my_all"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

}
<font color="#000">回复格式</font>
{

    "code",         <font color='#333'></font>
    "ret"           <font color='#333'>[[id, topid, name, url, tab]]</font>
}
                </pre>
            </div>
        </div><div class="p_content">
            <a name="6"></a>
            <h3>2.6 role_id的所有权限(<font color="green">"/account_sproto/pms_all"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

    "role_id"       <font color='#333'>角色id</font>
}
<font color="#000">回复格式</font>
{

    "code",         <font color='#333'></font>
    "ret"           <font color='#333'>[[id, topid, name, url, tab, pms_op]]</font>
}
                </pre>
            </div>
        </div><div class="p_content">
            <a name="7"></a>
            <h3>2.7  更新某个角色的权限信息(<font color="green">"/account_sproto/pms_update"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

    "role_id",      <font color='#333'></font>
    "pms_ids":[{
        "pms_id"        <font color='#333'></font>
    }]
}
<font color="#000">回复格式</font>
{

    "code"          <font color='#333'>200</font>
}
                </pre>
            </div>
        </div><div class="p_content">
            <a name="8"></a>
            <h3>2.8  删除权限信息(<font color="green">"/account_sproto/pms_del"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{

    "pms_ids":[{
        "pms_id"        <font color='#333'></font>
    }]
}
<font color="#000">回复格式</font>
{

    "code"          <font color='#333'>200</font>
}
                </pre>
            </div>
        </div></div>
    </div>
    <div class="clear"></div>
</div>

<div id="footer">
    <div id="promote"><a href="#">关于</a> |<span>商务合作 : #</span></div>
</div>
</body>
</html>